# -*- coding: utf-8 -*-

from core.viewset import CustomModelViewSet
from .models import Node
from .serializers import *
from .resources import *
from .filters import *


class NodeViewSet(CustomModelViewSet):
    """
    节点管理接口
    list:查询
    create:新增
    update:修改
    retrieve:单例
    destroy:删除
    """

    queryset = Node.objects.all()
    serializer_class = NodeSerializer
    filterset_class = NodeFilterSet
    import_resources = NodeResouces
    export_resources = NodeResouces
